// this is needed for the _compiled version_ of USE,
// to load the scintilla DLL initially.
#include <windows.h>
#include "ucw_int.h"

static HINSTANCE gDLL;

struct _Init {
  _Init()
  {
#ifndef _DEBUG
    string scilexer = UCW::home_dir() + "/lib/scilexer.dll";
#else
    string scilexer = "../../lib/scilexer.dll";  // *fix 0.5.1 for debugging....
#endif
    gDLL = LoadLibrary(scilexer.c_str());
  }
  ~_Init()
  {
    FreeLibrary(gDLL);
  }
} _init_;
